//导入引入组件路径
import HelloWorld from './components/HelloWorld.vue'
import Head from './components/Head.vue'
export default {
  //组件名
  name: 'App',
  data(){
    return{
       massage:"hhhh",
       arrs:['曹操','项羽','张飞'],
       news:'新闻'
    }
  },
  methods: {
    getShowText(index){
        alert(this.arrs[index])
    },
    getparent(txt){
      this.news=txt
      console.log(txt)
    }
  },
  components: {
    //注入
    HelloWorld,
    Head
  }
}